#include "add_op.h"
#include "../constant.h"

vector<Node*> Add::getGradNodes(Node* grad){
    return { grad ,grad };
}

void Add::compute(Context* context){
    auto nodes = *getNodeIn();
    context -> setFlowedData(this,
         context -> getFlowedData(nodes[0]) + context -> getFlowedData(nodes[1]));
}
